<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core" template="/WEB-INF/template/ui.xhtml">

	<ui:define name="head">
		<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.6.0/underscore-min.js"></script>
		<script src="http://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone-min.js"></script>
		<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/2.0.0-alpha.4/handlebars.min.js"></script>
		<script src="http://cdnjs.cloudflare.com/ajax/libs/typeahead.js/0.10.4/typeahead.bundle.min.js"></script>
		<script src="http://cdnjs.cloudflare.com/ajax/libs/taffydb/2.7.2/taffy-min.js"></script>
		<link type="text/css" rel="stylesheet" href="/resources/css/jquery-ui.min.css" />
	</ui:define>

	<ui:define name="content">
		<h:outputScript library="javax.faces" name="jsf.js" target="head" />
		<h:outputScript name="js/jquery-ui.min.js" target="head" />
		<h:outputScript name="js/conquest.js" target="head" />
		<h:outputScript name="js/conquest.util.js" target="head" />
		<h:outputScript name="js/handlebars-helpers.js" target="head" />
		<h:outputScript name="js/handlebars-templates.js" target="head" />
		<h:outputScript name="js/card.js" target="head" />
		<h:outputScript target="head">
			conquest.static.language = '#{localeCtrl.language}';
			conquest.static.contextPath = '#{facesContext.externalContext.request.contextPath}';
			conquest.static.restPath = '#{facesContext.externalContext.request.contextPath}/rest';
			conquest.static.imagePath = '/image';
			conquest.static.messages = #{bootstrapCtrl.messagesData};
			conquest.dict.cards = #{bootstrapCtrl.cardsData};
			conquest.dict.sets = #{bootstrapCtrl.cardSetsData};
			conquest.dict.factions = #{bootstrapCtrl.domainFactionData};
			conquest.dict.traits = #{bootstrapCtrl.domainTraitData};
			conquest.dict.keywords = #{bootstrapCtrl.domainKeywordData};
			conquest.dict.initialize();
		</h:outputScript>
	</ui:define>

</ui:composition>